package com.ywu.sentinel.standard.data;

import com.ywu.sentinel.sdk.dto.YwuFlowRuleDto;
import com.ywu.sentinel.standard.entity.YwuFlowRuleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface YwuFlowRuleRepository {
    void insert(@Param("model") YwuFlowRuleEntity entity);

    YwuFlowRuleEntity getEntity(@Param("model") YwuFlowRuleEntity search);

    void delete(@Param("model") YwuFlowRuleEntity delete);

    List<YwuFlowRuleEntity> queryList(@Param("model") YwuFlowRuleDto ruleDto);

    int queryListCount(@Param("model") YwuFlowRuleDto ruleDto);

    List<YwuFlowRuleEntity> queryPageList(@Param("model") YwuFlowRuleDto ruleDto);

    void update(@Param("model") YwuFlowRuleEntity update);
}
